﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace GenericModels
{
    [KnownType(typeof(List<PartBooking>))]
    [DataContract]
    public class Booking
    {
        private int bookingId;
        private List<PartBooking> pbList;
        private float totalPrice;
        private int empId;
        private bool isCollected;
        private int customer_id;


        //constructor 
        public Booking()
        {
            this.bookingId = 0;
            this.pbList = new List<PartBooking>();
            this.totalPrice = 0;
            this.empId = 0;
            this.isCollected = false;
            this.customer_id = 0;
        }

        #region Getters and setters

        [DataMember]
        public bool IsCollected
        {
            get { return isCollected;  }
            set { isCollected = value; }
        }

        [DataMember]
        public float TotalPrice
        {
            get { return totalPrice; }
            set { totalPrice = value; }
        }

        [DataMember]
        public int BookingId
        {
            get { return bookingId; }
            set { bookingId = value; }
        }

        [DataMember]
        public List<PartBooking> PbList
        {
            get { return pbList; }
            set { pbList = value; }
        }

        [DataMember]
        public int EmpId
        {
            get { return empId; }
            set { empId = value; }
        }

        [DataMember]
        public int Customer_id
        {
            get { return customer_id; }
            set { customer_id = value; }
        }

        #endregion

        }
}
